<?php
namespace App\Services\H5;

use Illuminate\Support\Facades\DB;

class UserService extends BaseService
{
    /**
     * 场景
     */

    /**
     * 获取登录信息
     * @param string $h5code
     */
    public function getUid($h5code)
    {
        $res = (array) $this->dbConn($this->dbH5code)
            ->where('h5code', $h5code)
            ->orderBy('id', 'desc')
            ->first();
        return !empty($res) ? $res['uid'] : 0;
    }
}